package com.videoaggre.zcl.ui.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter

class ViewPage2Adapter(fragmentManager: FragmentManager, lifecycle: Lifecycle, var fragments: MutableList<Fragment>) : FragmentStateAdapter(fragmentManager, lifecycle) {
    override fun getItemCount() = fragments.size
    override fun createFragment(position: Int) = fragments[position]
}